function faireness_index = GetFairnessIndex(file_name)
    throughputs = GetLinkThroughputs(file_name);
    
    numerator = 0;
    denominator = 0;
    [m, n] = size (throughputs);
    for i=1:m
      denominator = denominator + throughputs(i) * throughputs(i);
      numerator = numerator + throughputs(i);
    end
    denominator = denominator * m;
    numerator = numerator * numerator;
    faireness_index = numerator / denominator
end